package com.zjy.dao;

import com.zjy.bean.ShoppingCart;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface ShoppingCartMapper extends Mapper<ShoppingCart> {
    ShoppingCart selectByUserAndGoodsId(@Param("userId") String userId, @Param("goodsId") String goodsId);

    ShoppingCart selectById(String id);

    int deleteShopCartById(@Param("idList") List<String> idList);

    List<ShoppingCart> selectShopCartByUserId(String userId);

    List<ShoppingCart> selectShopCartByOrderId(String orderId);
}